All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.Button

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Responder
                   |
                   +----com.apple.alpha.app.View
                           |
                           +----com.apple.alpha.app.Control
                                   |
                                   +----com.apple.alpha.app.Button

public class Button
extends Control
This class wraps the Objective-C class NSButton.


Variable Index

 o MomentaryChange
 o MomentaryLight
 o MomentaryPush
 o OnOff
 o PushOnPushOff
 o Radio
 o Switch
 o Toggle

Constructor Index

 o Button()
This default constructor is equivalent to Objective-C's [[NSButton alloc] init].
 o Button(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Button(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o Button(Rect)
This constructor has the same effect as calling - initWithFrame: on a newly allocated object.

Method Index

 o allowsMixedState()
A wrapper for the - allowsMixedState Objective-C instance method.
 o alternateImage()
A wrapper for the - alternateImage Objective-C instance method.
 o alternateTitle()
A wrapper for the - alternateTitle Objective-C instance method.
 o attributedAlternateTitle()
A wrapper for the - attributedAlternateTitle Objective-C instance method.
 o attributedTitle()
A wrapper for the - attributedTitle Objective-C instance method.
 o bezelStyle()
A wrapper for the - bezelStyle Objective-C instance method.
 o highlight(boolean)
A wrapper for the - highlight: Objective-C instance method.
 o image()
A wrapper for the - image Objective-C instance method.
 o imagePosition()
A wrapper for the - imagePosition Objective-C instance method.
 o interval()
A wrapper for the - interval Objective-C instance method.
 o isBordered()
A wrapper for the - isBordered Objective-C instance method.
 o isTransparent()
A wrapper for the - isTransparent Objective-C instance method.
 o keyEquivalent()
A wrapper for the - keyEquivalent Objective-C instance method.
 o keyEquivalentModifierMask()
A wrapper for the - keyEquivalentModifierMask Objective-C instance method.
 o performClick(Object)
A wrapper for the - performClick: Objective-C instance method.
 o performKeyEquivalent(Event)
A wrapper for the - performKeyEquivalent: Objective-C instance method.
 o periodicDelay()
A wrapper for the - periodicDelay Objective-C instance method.
 o setAllowsMixedState(boolean)
A wrapper for the - setAllowsMixedState: Objective-C instance method.
 o setAlternateImage(Image)
A wrapper for the - setAlternateImage: Objective-C instance method.
 o setAlternateTitle(String)
A wrapper for the - setAlternateTitle: Objective-C instance method.
 o setAttributedAlternateTitle(AttributedString)
A wrapper for the - setAttributedAlternateTitle: Objective-C instance method.
 o setAttributedTitle(AttributedString)
A wrapper for the - setAttributedTitle: Objective-C instance method.
 o setBezelStyle(int)
A wrapper for the - setBezelStyle: Objective-C instance method.
 o setBordered(boolean)
A wrapper for the - setBordered: Objective-C instance method.
 o setButtonType(int)
A wrapper for the - setButtonType: Objective-C instance method.
 o setImage(Image)
A wrapper for the - setImage: Objective-C instance method.
 o setImagePosition(int)
A wrapper for the - setImagePosition: Objective-C instance method.
 o setKeyEquivalent(String)
A wrapper for the - setKeyEquivalent: Objective-C instance method.
 o setKeyEquivalentModifierMask(int)
A wrapper for the - setKeyEquivalentModifierMask: Objective-C instance method.
 o setNextState()
A wrapper for the - setNextState Objective-C instance method.
 o setPeriodicDelayAndInterval(float, float)
A wrapper for the - setPeriodicDelay:interval: Objective-C instance method.
 o setState(int)
A wrapper for the - setState: Objective-C instance method.
 o setTitle(String)
A wrapper for the - setTitle: Objective-C instance method.
 o setTitleWithMnemonic(String)
A wrapper for the - setTitleWithMnemonic: Objective-C instance method.
 o setTransparent(boolean)
A wrapper for the - setTransparent: Objective-C instance method.
 o state()
A wrapper for the - state Objective-C instance method.
 o title()
A wrapper for the - title Objective-C instance method.

Variables

 o MomentaryPush
 public static final int MomentaryPush
 o PushOnPushOff
 public static final int PushOnPushOff
 o Toggle
 public static final int Toggle
 o Switch
 public static final int Switch
 o Radio
 public static final int Radio
 o MomentaryChange
 public static final int MomentaryChange
 o OnOff
 public static final int OnOff
 o MomentaryLight
 public static final int MomentaryLight

Constructors

 o Button
 protected Button(boolean shouldAllocate,
                  int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Button
 public Button()
This default constructor is equivalent to Objective-C's [[NSButton alloc] init].

 o Button
 public Button(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

 o Button
 public Button(Rect frameRect)
This constructor has the same effect as calling - initWithFrame: on a newly allocated object.

Methods

 o title
 public native String title()
A wrapper for the - title Objective-C instance method.

 o setTitle
 public native void setTitle(String aString)
A wrapper for the - setTitle: Objective-C instance method.

 o alternateTitle
 public native String alternateTitle()
A wrapper for the - alternateTitle Objective-C instance method.

 o setAlternateTitle
 public native void setAlternateTitle(String aString)
A wrapper for the - setAlternateTitle: Objective-C instance method.

 o image
 public native Image image()
A wrapper for the - image Objective-C instance method.

 o setImage
 public native void setImage(Image image)
A wrapper for the - setImage: Objective-C instance method.

 o alternateImage
 public native Image alternateImage()
A wrapper for the - alternateImage Objective-C instance method.

 o setAlternateImage
 public native void setAlternateImage(Image image)
A wrapper for the - setAlternateImage: Objective-C instance method.

 o imagePosition
 public native int imagePosition()
A wrapper for the - imagePosition Objective-C instance method.

 o setImagePosition
 public native void setImagePosition(int aPosition)
A wrapper for the - setImagePosition: Objective-C instance method.

 o setButtonType
 public native void setButtonType(int aType)
A wrapper for the - setButtonType: Objective-C instance method.

 o state
 public native int state()
A wrapper for the - state Objective-C instance method.

 o setState
 public native void setState(int value)
A wrapper for the - setState: Objective-C instance method.

 o isBordered
 public native boolean isBordered()
A wrapper for the - isBordered Objective-C instance method.

 o setBordered
 public native void setBordered(boolean flag)
A wrapper for the - setBordered: Objective-C instance method.

 o isTransparent
 public native boolean isTransparent()
A wrapper for the - isTransparent Objective-C instance method.

 o setTransparent
 public native void setTransparent(boolean flag)
A wrapper for the - setTransparent: Objective-C instance method.

 o setPeriodicDelayAndInterval
 public native void setPeriodicDelayAndInterval(float delay,
                                                float interval)
A wrapper for the - setPeriodicDelay:interval: Objective-C instance method.

 o keyEquivalent
 public native String keyEquivalent()
A wrapper for the - keyEquivalent Objective-C instance method.

 o setKeyEquivalent
 public native void setKeyEquivalent(String charCode)
A wrapper for the - setKeyEquivalent: Objective-C instance method.

 o keyEquivalentModifierMask
 public native int keyEquivalentModifierMask()
A wrapper for the - keyEquivalentModifierMask Objective-C instance method.

 o setKeyEquivalentModifierMask
 public native void setKeyEquivalentModifierMask(int mask)
A wrapper for the - setKeyEquivalentModifierMask: Objective-C instance method.

 o highlight
 public native void highlight(boolean flag)
A wrapper for the - highlight: Objective-C instance method.

 o performKeyEquivalent
 public native boolean performKeyEquivalent(Event key)
A wrapper for the - performKeyEquivalent: Objective-C instance method.

Overrides:
performKeyEquivalent in class View
 o performClick
 public native void performClick(Object sender)
A wrapper for the - performClick: Objective-C instance method.

Overrides:
performClick in class Control
 o setTitleWithMnemonic
 public native void setTitleWithMnemonic(String stringWithAmpersand)
A wrapper for the - setTitleWithMnemonic: Objective-C instance method.

 o attributedTitle
 public native AttributedString attributedTitle()
A wrapper for the - attributedTitle Objective-C instance method.

 o setAttributedTitle
 public native void setAttributedTitle(AttributedString aString)
A wrapper for the - setAttributedTitle: Objective-C instance method.

 o attributedAlternateTitle
 public native AttributedString attributedAlternateTitle()
A wrapper for the - attributedAlternateTitle Objective-C instance method.

 o setAttributedAlternateTitle
 public native void setAttributedAlternateTitle(AttributedString obj)
A wrapper for the - setAttributedAlternateTitle: Objective-C instance method.

 o setBezelStyle
 public native void setBezelStyle(int bezelStyle)
A wrapper for the - setBezelStyle: Objective-C instance method.

 o bezelStyle
 public native int bezelStyle()
A wrapper for the - bezelStyle Objective-C instance method.

 o setAllowsMixedState
 public native void setAllowsMixedState(boolean flag)
A wrapper for the - setAllowsMixedState: Objective-C instance method.

 o allowsMixedState
 public native boolean allowsMixedState()
A wrapper for the - allowsMixedState Objective-C instance method.

 o setNextState
 public native void setNextState()
A wrapper for the - setNextState Objective-C instance method.

 o periodicDelay
 public final native float periodicDelay()
A wrapper for the - periodicDelay Objective-C instance method.

 o interval
 public final native float interval()
A wrapper for the - interval Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index